import { OrderType } from '../types'

const useChooseShopCoupon = () => {
  const showShopCouponList = ref(false)
  const currentItem = ref<OrderType>()
  const setShopCouponCommodityItem = (item: OrderType) => {
    currentItem.value = item
    showShopCouponList.value = true
  }
  return {
    showShopCouponList,
    currentItem,
    setShopCouponCommodityItem,
  }
}

export default useChooseShopCoupon
